package org.datacoder.geocoding.jurisdiction

/**
 * A municipality (city, town, etc.).  Belongs to a state.
 */
class Municipality extends Jurisdiction{

    State state

    static belongsTo = [state: State]

    public static String retrieveShortName(){
        return "Munic"
    }
    public String toString(){
        com.vividsolutions.jts.geom.Point point = getMultiPolygon().getCentroid()
        return "Municipality--Name: ${name}; Long Name: ${longName}; Lat/Long: (${point.getY()}, ${point.getX()})"
    }

}

